var path = require("path");
var fs = require("fs");

const stylePath = `./dist/static/style/icons`

fs.readdirSync(stylePath).forEach((item) => {
	let iconPath = path.join(__dirname, "../",stylePath,item)
	let content = fs.readFileSync(iconPath, 'utf8')
	content = content.replace(/(\d{1,})px/g,function (arg,$1,$2,$3){
		return ($1/3/20)+"rem"
	})
	fs.writeFileSync(iconPath, content, "utf8")
});

// var dataPath =path.resolve('./dist/static/mobile_site/style/icons/icons.css');




